@import "color";
@import "reset";
@import "common";
@import "gray";
@import "animate";

.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.sysTipIcon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: .5em;
	vertical-align: middle;
	background: url(image/sys-tip.gif) no-repeat transparent;
	*zoom: 1;
}

.warningTipIcon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: .5em;
	vertical-align: middle;
	background: url(image/warning.png) no-repeat transparent;
	*zoom: 1;
}

.kfContainer {
	position: fixed;
	right: 50px;
	bottom: 0;
	z-index: 1;

	*, *:before, *:after {
		box-sizing: content-box;
		-webkit-box-sizing: content-box;
		-moz-box-sizing: content-box;
	}
}

.kfcbSec {
	display: none;
}

.kfChatting {
	.kftSec {
		display: none;
	}
	.kfcbSec {
		display: block;
	}
}

.kftSec {
	position: relative;
	.kfTrigger {
		width: 180px;
		height: 30px;
		border: 1px solid @gray;
		border-radius: 5px;
		line-height: 30px;
		text-align: center;
		background-color: #fafafa;
		cursor: pointer;
	}
	.layer {
		display: none;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 30px;
	}
	.loading {
		display: block;
		opacity: .7;
		background: url(image/loading.gif) no-repeat center #666;
		border-radius: 5px;
	}
}
.logoSmall {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url(image/logo-small.png) no-repeat;
	vertical-align: middle;
	margin-right: .5em;
}
.logoTxt {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.kfChatPanel {
	width: 420px;
	height: 420px;
	border-radius: 5px;
	.panelHead {
		position: relative;
		height: 40px;
		border-radius: 5px 5px 0 0;
		background-color: @blue;
		border: 1px solid @gray;
		.title {
			padding: 4px 8px;
			line-height: 32px;
			color: white;
			font-size: 14px;
			font-family: "微软雅黑", "黑体";
			font-weight: 700;

		}
		.titlebarButtonWrapper {
			float: right;
			margin-right: 4px;
			margin-top: 4px;
			.clearfix();
		}
		.closeBtn, .openInNewWin {
			float: left;
			display: inline-block;
			background-color: #333;
			width: 32px;
			height: 32px;
			cursor: pointer;
			zoom: 1;
		}
		.closeBtn {
			background: url(image/titlebarbtn.png) no-repeat -4px -4px transparent;
			&:hover {
				background-position: -4px -44px;
			}
		}
		.openInNewWin {
			background: url(image/titlebarbtn.png) no-repeat -4px -84px transparent;
			&:hover {
				background-position: -4px -124px;
			}
		}
	}
	.panelBody {
		position: relative;
		top: 0;
		left: 0;
		z-index: 1;
		padding: 4px;
		background-color: @blue;
		border-left: 1px solid @gray;
		border-right: 1px solid @gray;
		border-bottom: 1px solid @gray;
	}
	.pbPad, .gradeLayer {
		width: 410px;
		height: 370px;
		background-color: @white;
	}

	.pbPad {
		position: relative;
		.toolbar {
			position: absolute;
			right: 0;
			bottom: 0;
			width: 80px;
			height: 32px;
			.clearfix();
		}

		.emotion {
			float: left;
			display: inline-block;
			width: 40px;
			height: 32px;
			background: url(image/emotion.png) no-repeat center transparent;
			cursor: pointer;
		}
		.uploadImg {
			float: left;
			display: inline-block;
			width: 40px;
			height: 32px;
			background: url(image/upload-image.png) no-repeat center transparent;
			cursor: pointer;
		}
	}

	.gradeLayer {
		position: absolute;
		top: 4px;
		left: 4px;
		z-index: 10;
		display: none;
		.title {
			padding: 8px 10px;
			height: 20px;
			line-height: 20px;
			font-size: 16px;
		}

		.inputGroup {
			clear: both;
			padding: 5px 10px;
		}

		.inputLabel {
			line-height: 40px;
			font-size: 14px;
			font-weight: 700;
		}

		.evaluation {
			width: 376px;
			height:88px;
			padding: 6px;
			resize: none;
		}

		.gBtn {
			padding: 8px 24px;
			font-size: 14px;
			border: 1px solid #fff;
			border-radius: 3px;
			background-color: @gray-light;
			cursor: pointer;
			&:hover {
				background-color: darken(@gray-light, 5%);
			}

			&.gBtnBlue {
				background-color: @blue;
				color: #fff;
				&:hover {
					background-color: darken(@blue, 5%);
				}

				&.disabled {
					background-color: @gray-light;
					cursor: not-allowed;
				}
			}
		}

		.closeGrade {
			display: inline-block;
			position: absolute;
			padding: 0;
			top: 4px;
			right: 4px;
			z-index: 10;
			width: 21px;
			height: 21px;
			line-height: 21px;
			font-size: 18px;
			color: #68767b;
			text-align: center;
			cursor: pointer;
			font-family: Helvetica,STHeiti;
			_font-family: Tahoma,'\u9ed1\u4f53','Book Antiqua',Palatino;
			text-shadow: 0 1px 0 rgba(255,255,255,.9);
			*zoom: 1;
			&:hover {
				background: #C72015;
				color: #FFF;
			}
		}
	}

	.msgList {
		list-style: none;
		height: 336px;
		overflow: auto;
		border-bottom: 1px solid @gray;
		background-color: #fafafa;
	}

	.msgLi {
		padding: 5px 10px;
		.mHead {
			margin-bottom: 5px;
			font-size: 14px;
			color: @font-black;
			line-height: 1.6em;
			vertical-align: text-bottom;
			.clearfix();
		}
		.mTit {
			float: left;
			font-size: 14px;
			font-weight: 700;
		}
		.mTime {
			float: left;
			margin-left: 1em;
			margin-right: 1em;
			font-size: 75%;
			color: @gray-darker;
			font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
		}
		.mContent {
			clear: both;
			line-height: 1.4em;
			word-wrap: break-word;
			white-space: pre-wrap
		}

		.mLabel {
			position: relative;
			top: 0;
			left: 0;
			z-index: 1;
			padding: 5px 10px;
			border-radius: 5px;
			background-color: @cloud;

			.triangle {
				position: absolute;
				top: 5px;
				left: -8px;
				width: 0;
				height: 0;
				border-top: 8px solid transparent;
				border-right: 8px solid @cloud;
				border-bottom: 8px solid transparent;
				border-left: 0 none;
			}
		}

		&.msgRt {
			.mTit {
				float: right;
			}
			.mTime {
				float: right;
			}
			.mContent {
				text-align: right;
			}

			.mLabel {
				background-color: @white-blue-bg;
				.triangle {
					left: auto;
					right: -8px;
					border-right: 0 none;
					border-left: 8px solid @white-blue-bg;
				}
			}
		}

		.defMsg {
			font-size: 14px;
			line-height: 1.2em;
		}
		.groupUL {
			margin-top: 10px;
			padding-left: 0;
			list-style: none;
			.gLI {
				padding: 5px 0;
				.gLnk {
					display: block;
					font-size: 14px;
					line-height: 1.4em;
					text-decoration: none;
					&:hover {
						text-decoration: underline;
					}
				}
				.num {
					font-weight: 700;
					font-style: italic;
				}
				&.noOL {
					.gLnk {
						text-decoration: line-through;
						cursor: not-allowed;
					}
					.num {
						color: @red;
					}
				}
			}
		}
	}

	.msgInputBox {
		padding-right: 80px;
		.msgInput {
			width: 100%;
			height: 24px;
			min-height: 24px;
			max-height: 88px;
			line-height: 1.5em;
			padding: 4px 8px;
			font-size: 14px;
			border: 0 none;
			resize: none;
			outline: none;
		}
	}
}

.gradeStar {
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	width: 410px;
	height: 70px;
	.clearfix();

	.gradeList {
		display: block;
		width: 120px;
		margin: 10px auto;
		list-style: none;
		height: 20px;
		line-height: 20px;
		*zoom: 1;
		.clearfix();
	}

	li {
		float: left;
		width: 24px;
		cursor: pointer;
		text-indent: -9999px;
		background: url(image/star.png) no-repeat;

		&.on {
			background-position: 0 -28px;
		}
	}

	strong {
		color: #f60;
		padding-left: 10px;
	}

	.gradeTipBox {
		position: absolute;
		top: 6px;
		width: 180px;
		height: 68px;
		display: none;
		background: url(image/gradeTip.png) no-repeat;

		.gradeTip {
			padding: 6px 10px;
		}

		em {
			color: #f60;
			display: block;
			font-style: normal;
		}
	}

	.gradeResult {
		height: 40px;
		line-height: 40px;
		padding-top: 30px;
		font-size: 16px;
		text-align: center;
	}
}

.ballonToolTip {
	.ui-dialog-body {
		padding: 10px 20px;
	}
	&.text-blue {
		color: @blue-text;
	}
}

.kfBackground {
	display: none;
	height: 0;
	width: 0;
	font-size: 0;
}